package com.lagou.dubbo.quartz;

import com.lagou.dubbo.service.TPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TPQuartz {

    @Autowired
    private TPService tpService;

    /**
     * 打印TP监控记录
     * 间隔5秒钟触发
     */
    @Scheduled(cron = "0/5 * * * * ?")
    public void printTP() {
        tpService.printTP();
    }
}
